package com.corx.network.mysqlstorage.repository;


import com.corx.network.mysqlstorage.common.PageQuery;
import com.corx.network.mysqlstorage.common.PageResult;
import com.corx.network.mysqlstorage.model.DeviceDataRaw;

import java.util.List;
import java.util.Optional;

/**
 * @author gx
 * @version 1.0.0
 */
public interface DeviceDataRawRepository {

    Optional<DeviceDataRaw> findById(Long id);

    List<DeviceDataRaw> findByDeviceId(Long deviceId);

    void save(DeviceDataRaw data);

    void delete(Long id);

    void update(DeviceDataRaw model);

    PageResult<DeviceDataRaw> findByPage(DeviceDataRaw model, PageQuery pageQuery);
}
